local extension = Package:new("hegemony_cards", Package.CardPack)
extension.extensionName = "hegemony_cards"

Fk:loadTranslationTable{
  ["hegemony_cards"] = "国战标准版&势备篇",
}

extension:loadSkillSkelsByPath("./packages/hegemony_cards/pkg/skills")
--国战专属牌

--国无懈
local hegNullification = fk.CreateCard{
  name = "heg__nullification",
  type = Card.TypeTrick,
  skill = "heg__nullification_skill",
  is_passive = true,
}

--远交近攻
local befriendAttacking = fk.CreateCard{
  name = "befriend_attacking",
  type = Card.TypeTrick,
  suit = Card.Heart,
  number = 9,
  skill = "befriend_attacking_skill",
}

--知己知彼
local knownBoth = fk.CreateCard{
  name = "known_both",
  type = Card.TypeTrick,
  skill = "known_both_skill",
  suit = Card.Club,
  number = 3,
  special_skills = {"recast"},
}

local awaitExhausted = fk.CreateCard{
  name = "await_exhausted",
  type = Card.TypeTrick,
  skill = "await_exhausted_skill",
  suit = Card.Heart,
  number = 11,
  multiple_targets = true,
}

local triblade = fk.CreateCard{
  name = "triblade",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeWeapon,
  attack_range = 3,
  equip_skill = "#triblade_skill",
}

Fk:loadTranslationTable{
  ["befriend_attacking"] = "远交近攻",
  [":befriend_attacking"] = "锦囊牌<br/><b>时机</b>：出牌阶段<br/><b>目标</b>：有明置武将且势力与你不同的一名角色<br/><b>效果</b>：目标角色"..
  "摸一张牌，然后你摸三张牌。",

  ["known_both"] = "知己知彼",
  [":known_both"] = "锦囊牌<br/><b>时机</b>：出牌阶段<br/><b>目标</b>：一名其他角色<br/><b>效果</b>：观看目标角色一张暗置的武将牌或其手牌。",

  ["await_exhausted"] = "以逸待劳",
  [":await_exhausted"] = "锦囊牌<br/><b>时机</b>：出牌阶段<br/><b>目标</b>：你和与你势力相同的角色<br/><b>效果</b>：每名目标角色各摸两张牌，"..
  "然后弃置两张牌。",

  ["triblade"] = "三尖两刃刀",
  [":triblade"] = "装备牌·武器<br/><b>攻击范围</b>：３ <br/><b>武器技能</b>：当你使用【杀】对目标角色造成伤害后，你可以弃置一张手牌，"..
  "对其距离1的一名其他角色造成1点伤害。",
}

extension:loadCardSkels {
  hegNullification, befriendAttacking, knownBoth, awaitExhausted,
  triblade,
}

--基本牌
extension:addCardSpec("slash", Card.Spade, 5)
extension:addCardSpec("slash", Card.Spade, 7)
extension:addCardSpec("slash", Card.Spade, 8)
extension:addCardSpec("slash", Card.Spade, 8)
extension:addCardSpec("slash", Card.Spade, 9)
extension:addCardSpec("slash", Card.Spade, 10)
extension:addCardSpec("slash", Card.Spade, 11)
extension:addCardSpec("slash", Card.Heart, 10)
extension:addCardSpec("slash", Card.Heart, 12)
extension:addCardSpec("slash", Card.Club, 2)
extension:addCardSpec("slash", Card.Club, 3)
extension:addCardSpec("slash", Card.Club, 4)
extension:addCardSpec("slash", Card.Club, 5)
extension:addCardSpec("slash", Card.Club, 8)
extension:addCardSpec("slash", Card.Club, 9)
extension:addCardSpec("slash", Card.Club, 10)
extension:addCardSpec("slash", Card.Club, 11)
extension:addCardSpec("slash", Card.Club, 12)
extension:addCardSpec("slash", Card.Diamond, 10)
extension:addCardSpec("slash", Card.Diamond, 11)
extension:addCardSpec("slash", Card.Diamond, 12)

extension:addCardSpec("thunder__slash", Card.Spade, 6)
extension:addCardSpec("thunder__slash", Card.Spade, 7)
extension:addCardSpec("thunder__slash", Card.Club, 6)
extension:addCardSpec("thunder__slash", Card.Club, 7)
extension:addCardSpec("thunder__slash", Card.Club, 8)

extension:addCardSpec("fire__slash", Card.Heart, 4)
extension:addCardSpec("fire__slash", Card.Diamond, 4)
extension:addCardSpec("fire__slash", Card.Diamond, 5)

extension:addCardSpec("jink", Card.Heart, 2)
extension:addCardSpec("jink", Card.Heart, 11)
extension:addCardSpec("jink", Card.Heart, 13)
extension:addCardSpec("jink", Card.Diamond, 2)
extension:addCardSpec("jink", Card.Diamond, 3)
extension:addCardSpec("jink", Card.Diamond, 6)
extension:addCardSpec("jink", Card.Diamond, 7)
extension:addCardSpec("jink", Card.Diamond, 7)
extension:addCardSpec("jink", Card.Diamond, 8)
extension:addCardSpec("jink", Card.Diamond, 8)
extension:addCardSpec("jink", Card.Diamond, 9)
extension:addCardSpec("jink", Card.Diamond, 10)
extension:addCardSpec("jink", Card.Diamond, 11)
extension:addCardSpec("jink", Card.Diamond, 13)

extension:addCardSpec("peach", Card.Heart, 4)
extension:addCardSpec("peach", Card.Heart, 6)
extension:addCardSpec("peach", Card.Heart, 7)
extension:addCardSpec("peach", Card.Heart, 8)
extension:addCardSpec("peach", Card.Heart, 9)
extension:addCardSpec("peach", Card.Heart, 10)
extension:addCardSpec("peach", Card.Heart, 12)
extension:addCardSpec("peach", Card.Diamond, 2)

extension:addCardSpec("analeptic", Card.Spade, 9)
extension:addCardSpec("analeptic", Card.Club, 9)
extension:addCardSpec("analeptic", Card.Diamond, 9)

--锦囊牌
  extension:addCardSpec("dismantlement", Card.Spade, 3)
  extension:addCardSpec("dismantlement", Card.Spade, 4)
  extension:addCardSpec("dismantlement", Card.Heart, 12)
  extension:addCardSpec("snatch", Card.Diamond, 3)
  extension:addCardSpec("snatch", Card.Spade, 3)
  extension:addCardSpec("snatch", Card.Spade, 4)
  extension:addCardSpec("duel", Card.Spade, 1)
  extension:addCardSpec("duel", Card.Club, 1)
  extension:addCardSpec("collateral", Card.Club, 12)
  extension:addCardSpec("ex_nihilo", Card.Heart, 7)
  extension:addCardSpec("ex_nihilo", Card.Heart, 8)
  extension:addCardSpec("nullification", Card.Spade, 11)
  extension:addCardSpec("heg__nullification", Card.Club, 13)
  extension:addCardSpec("heg__nullification", Card.Diamond, 12)
  extension:addCardSpec("savage_assault", Card.Spade, 13)
  extension:addCardSpec("savage_assault", Card.Club, 7)
  extension:addCardSpec("archery_attack", Card.Heart, 1)
  extension:addCardSpec("god_salvation", Card.Heart, 1)
  extension:addCardSpec("amazing_grace", Card.Heart, 3)
  extension:addCardSpec("lightning", Card.Spade, 1)
  extension:addCardSpec("indulgence", Card.Heart, 6)
  extension:addCardSpec("indulgence", Card.Club, 6)
  extension:addCardSpec("fire_attack", Card.Heart, 2)
  extension:addCardSpec("fire_attack", Card.Heart, 3)
  extension:addCardSpec("iron_chain", Card.Spade, 12)
  extension:addCardSpec("iron_chain", Card.Club, 12)
  extension:addCardSpec("iron_chain", Card.Club, 13)
  extension:addCardSpec("supply_shortage", Card.Spade, 10)
  extension:addCardSpec("supply_shortage", Card.Club, 10)
  extension:addCardSpec("befriend_attacking", Card.Heart, 9)
  extension:addCardSpec("known_both", Card.Club, 3)
  extension:addCardSpec("known_both", Card.Club, 4)
  extension:addCardSpec("await_exhausted", Card.Heart, 11)
  extension:addCardSpec("await_exhausted", Card.Diamond, 4)


--装备牌
extension:addCardSpec("crossbow", Card.Diamond, 1)
extension:addCardSpec("qinggang_sword", Card.Spade, 6)
extension:addCardSpec("ice_sword", Card.Spade, 2)
extension:addCardSpec("double_swords", Card.Spade, 2)
extension:addCardSpec("spear", Card.Spade, 12)
extension:addCardSpec("axe", Card.Diamond, 5)
extension:addCardSpec("triblade", Card.Diamond, 12)

extension:addCardSpec("fan", Card.Diamond, 1)
extension:addCardSpec("kylin_bow", Card.Heart, 5)

extension:addCardSpec("eight_diagram", Card.Spade, 2)
extension:addCardSpec("nioh_shield", Card.Club, 2)
extension:addCardSpec("silver_lion", Card.Club, 1)
extension:addCardSpec("vine", Card.Club, 2)

extension:addCardSpec("dilu", Card.Club, 5)
extension:addCardSpec("jueying", Card.Spade, 5)
extension:addCardSpec("zhuahuangfeidian", Card.Heart, 13)
extension:addCardSpec("chitu", Card.Heart, 5)
extension:addCardSpec("dayuan", Card.Spade, 13)
extension:addCardSpec("zixing", Card.Diamond, 13)

extension:addCardSpec("slash", Card.Heart, 10)
extension:addCardSpec("slash", Card.Heart, 11)
extension:addCardSpec("slash", Card.Spade, 4)
extension:addCardSpec("slash", Card.Spade, 7)
extension:addCardSpec("slash", Card.Spade, 8)
extension:addCardSpec("slash", Card.Club, 4)
extension:addCardSpec("slash", Card.Club, 6)
extension:addCardSpec("slash", Card.Club, 7)
extension:addCardSpec("slash", Card.Club, 8)

extension:addCardSpec("thunder__slash", Card.Spade, 9)
extension:addCardSpec("thunder__slash", Card.Spade, 10)
-- Fk:cloneCard("thunder__slash", Card.Spade, 11)
-- Fk:cloneCard("thunder__slash", Card.Club, 5)

extension:addCardSpec("fire__slash", Card.Diamond, 8)
extension:addCardSpec("fire__slash", Card.Diamond, 9)

extension:addCardSpec("jink", Card.Heart, 4)
extension:addCardSpec("jink", Card.Heart, 5)
-- Fk:cloneCard("jink", Card.Heart, 6)
extension:addCardSpec("jink", Card.Heart, 7)
extension:addCardSpec("jink", Card.Diamond, 6)
extension:addCardSpec("jink", Card.Diamond, 7)
extension:addCardSpec("jink", Card.Diamond, 13)

extension:addCardSpec("peach", Card.Heart, 8)
extension:addCardSpec("peach", Card.Heart, 9)
extension:addCardSpec("peach", Card.Diamond, 2)
-- Fk:cloneCard("peach", Card.Diamond, 3)

-- Fk:cloneCard("analeptic", Card.Spade, 6)
extension:addCardSpec("analeptic", Card.Club, 9)

extension:addCardSpec("nullification", Card.Spade, 13)

extension:addCardSpec("heg__nullification", Card.Diamond, 11)
extension:addCardSpec("heg__nullification", Card.Club, 13)

extension:addCardSpec("jink", Card.Heart, 6)
extension:addCardSpec("peach", Card.Diamond, 3)
extension:addCardSpec("analeptic", Card.Spade, 6)
extension:addCardSpec("thunder__slash", Card.Spade, 11)
extension:addCardSpec("thunder__slash", Card.Club, 5)

local drowning = fk.CreateCard{
  name = "sa__drowning",
  skill = "sa__drowning_skill",
  type = Card.TypeTrick,
  is_damage_card = true,
}

extension:addCardSpec("sa__drowning", Card.Heart, 13)
extension:addCardSpec("sa__drowning", Card.Club, 12)

local burningCamps = fk.CreateCard{
  name = "burning_camps",
  type = Card.TypeTrick,
  skill = "burning_camps_skill",
  multiple_targets = true,
  is_damage_card = true,
}

extension:addCardSpec("burning_camps", Card.Heart, 12)
extension:addCardSpec("burning_camps", Card.Spade, 3)
extension:addCardSpec("burning_camps", Card.Club, 11)

local lureTiger = fk.CreateCard{
  name = "lure_tiger",
  type = Card.TypeTrick,
  skill = "lure_tiger_skill",
  multiple_targets = true,
}

extension:addCardSpec("lure_tiger", Card.Heart, 2)
extension:addCardSpec("lure_tiger", Card.Diamond, 10)

local fightTogether = fk.CreateCard{
  name = "fight_together",
  type = Card.TypeTrick,
  skill = "fight_together_skill",
  multiple_targets = true,
  special_skills = { "recast" },
}

extension:addCardSpec("fight_together", Card.Spade, 12)
extension:addCardSpec("fight_together", Card.Club, 10)

local allianceFeast = fk.CreateCard{
  name = "alliance_feast",
  type = Card.TypeTrick,
  skill = "alliance_feast_skill",
  multiple_targets = true,
}

extension:addCardSpec("alliance_feast", Card.Heart, 1)

local threatenEmperor = fk.CreateCard{
  name = "threaten_emperor",
  type = Card.TypeTrick,
  skill = "threaten_emperor_skill",
}

extension:addCardSpec("threaten_emperor", Card.Diamond, 1)
extension:addCardSpec("threaten_emperor", Card.Diamond, 4)
extension:addCardSpec("threaten_emperor", Card.Spade, 1)

local breastplate = fk.CreateCard{
  name = "sa__breastplate",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeArmor,
  equip_skill = "#sa__breastplate_skill",
}

extension:addCardSpec("sa__breastplate", Card.Club, 2)

local jingfan = fk.CreateCard{
  name = "jingfan",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeOffensiveRide,
  equip_skill = "#jingfan_skill",
}

extension:addCardSpec("jingfan", Card.Heart, 3)


extension:loadCardSkels{
  drowning, burningCamps, lureTiger, fightTogether, allianceFeast, threatenEmperor,
  breastplate,  jingfan,
}

return extension
